package com.tjtt.tdm.form.service.impl;

import java.util.List;
import java.util.Map;

import org.apache.poi.xssf.usermodel.XSSFSheet;

import com.tjtt.tdm.base.PageResult;
import com.tjtt.tdm.flow.bean.Flowtype;
import com.tjtt.tdm.form.dao.IAutoDao;
import com.tjtt.tdm.form.service.IAutoService;
import com.tjtt.tdm.system.bean.LogInfo;
import com.tjtt.tdm.system.service.LogService;

public class AutoServiceImpl implements IAutoService{

	private IAutoDao autoDao;

	public IAutoDao getAutoDao() {
		return autoDao;
	}

	public void setAutoDao(IAutoDao autoDao) {
		this.autoDao = autoDao;
	}

	
	public PageResult queryAutoFormData(Map filterMap) {
		return autoDao.queryAutoFormData(filterMap);
	}
	public PageResult queryAutoFormData(Map filterMap,Map filterMapChild) {
		return autoDao.queryAutoFormData(filterMap,filterMapChild);
	}
	public PageResult queryAutoFormDataQuery(Map filterMap) {
		return autoDao.queryAutoFormDataQuery(filterMap);
	}
	public PageResult queryAutoAnalysisFormData(Map filterMap) {
		return autoDao.queryAutoAnalysisFormData(filterMap);
	}
	
	public PageResult queryAutoPageFormData(Map filterMap) {
		return autoDao.queryAutoPageFormData(filterMap);
	}
	
	public String executeSql(String sql) {
		return autoDao.executeSql(sql);
	}

	public void executeSqlmore(List<String> lists){
		 autoDao.executeSqlmore(lists);
	}
	
	public List getDatabySql(String sql) {
		System.out.println(sql);
		List l=autoDao.getDatabySql(sql);
		return  l;
	}

	
	public PageResult queryChooseFormData(Map filterMap) {
		return autoDao.queryChooseFormData(filterMap);
	}
//    public String saveDataManage(ZkhDataManage data){
//    	return autoDao.saveDataManage(data);
//    }
//	
//	public ZkhDataManage queryData(String id){
//		return autoDao.queryData(id);
//	}
//	
//	public void updateDataManage(ZkhDataManage data){
//		autoDao.updateDataManage(data);
//	}
//	public void deleteDataManage(String ids){
//		autoDao.deleteDataManage(ids);
//	}

	
	public Flowtype findFlowType(String flowid) {
		return autoDao.findFlowType(flowid);
	}

	
	public List findProject(String flowid, String taskId) {
		return autoDao.findProject(flowid,taskId);
	}

	
	public String executeId(String sqlInsert) {
		return autoDao.executeId(sqlInsert);
	}
	public String saveObject(Object obj){
		return autoDao.saveObject(obj);
	}
	
//	public void importGuanduan(XSSFSheet  hssfSheet){
//		autoDao.importGuanduan(hssfSheet);
//	}
	public String importGuanduan(XSSFSheet  hssfSheet,LogInfo loginfo){
		return autoDao.importGuanduan(hssfSheet,loginfo);
	}
}
